<?php

namespace app\common\model;

use think\Model;

class Amap extends Model
{
    // 表名
    protected $name = 'amap';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;
    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];

    const PROVINCE      = 1;
    const CITY = 2;
    const DISTRICT  = 3;
    static $levelMap = [
        self::PROVINCE      => '省、直辖市',
        self::CITY => '市',
        self::DISTRICT  => '区、县',
    ];



}
